package com.member.shop.mapper;

import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.member.shop.domain.SysBizMaterial;
import org.apache.ibatis.annotations.Param;

/**
 * 素材Mapper接口
 *
 * @author lixinchen
 * @date 2024-05-08
 */
public interface SysBizMaterialMapper extends BaseMapper<SysBizMaterial>
{
    /**
     * 查询素材
     *
     * @param id 素材主键
     * @return 素材
     */
    public SysBizMaterial selectSysBizMaterialById(Long id);

    /**
     * 查询素材列表
     *
     * @param sysBizMaterial 素材
     * @return 素材集合
     */
    public List<SysBizMaterial> selectSysBizMaterialList(SysBizMaterial sysBizMaterial);

    /**
     * 新增素材
     *
     * @param sysBizMaterial 素材
     * @return 结果
     */
    public int insertSysBizMaterial(SysBizMaterial sysBizMaterial);

    /**
     * 修改素材
     *
     * @param sysBizMaterial 素材
     * @return 结果
     */
    public int updateSysBizMaterial(SysBizMaterial sysBizMaterial);

    /**
     * 删除素材
     *
     * @param id 素材主键
     * @return 结果
     */
    public int deleteSysBizMaterialById(Long id);

    /**
     * 批量删除素材
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSysBizMaterialByIds(Long[] ids);

    List<SysBizMaterial> queryCollectByMaterial(@Param("userId") Long userId, @Param("type") Integer type);
}
